import { ajax } from '../http.js';

const findBrandPageUrl = '/brand/find_brand_product_page';
const findGoodsByBrandUrl = '/product_b2b/find_by_brand';
const findBrandInfoUrl = '/brand/find';

const findBrandPage = (data, success, fail) => // 分页品牌商品
  ajax({
    url: findBrandPageUrl,
    data: data,
    success: success,
    fail: fail
  });
const findGoodsByBrand = (data, success, fail) => // 商品列表
	ajax({
	  url: findGoodsByBrandUrl,
	  data: data,
	  success: success,
	  fail: fail
	});
const findBrandInfo = (data, success, fail) => // 品牌信息
  ajax({
    url: findBrandInfoUrl,
    data: data,
    success: success,
    fail: fail
  });

export {
  findBrandPage,
  findGoodsByBrand,
  findBrandInfo
}